<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GZlibDecompressor</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GIO 参考手册">
<link rel="up" href="conversion.html" title="Data conversion">
<link rel="prev" href="gio-GZlibCompressor.html" title="GZlibCompressor">
<link rel="next" href="streaming.html" title="Streaming I/O">
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gio-GZlibCompressor.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="conversion.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIO 参考手册</th>
<td><a accesskey="n" href="streaming.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gio-GZlibDecompressor.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gio-GZlibDecompressor.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gio-GZlibDecompressor"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gio-GZlibDecompressor.top_of_page"></a>GZlibDecompressor</span></h2>
<p>GZlibDecompressor — Zlib decompressor</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gio-GZlibDecompressor.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gio/gio.h&gt;

                    <a class="link" href="gio-GZlibDecompressor.html#GZlibDecompressor" title="GZlibDecompressor">GZlibDecompressor</a>;
<a class="link" href="gio-GZlibDecompressor.html#GZlibDecompressor" title="GZlibDecompressor"><span class="returnvalue">GZlibDecompressor</span></a> * <a class="link" href="gio-GZlibDecompressor.html#g-zlib-decompressor-new" title="g_zlib_decompressor_new ()">g_zlib_decompressor_new</a>             (<em class="parameter"><code><a class="link" href="gio-GZlibCompressor.html#GZlibCompressorFormat" title="enum GZlibCompressorFormat"><span class="type">GZlibCompressorFormat</span></a> format</code></em>);
<a class="link" href="gio-GFileInfo.html#GFileInfo" title="GFileInfo"><span class="returnvalue">GFileInfo</span></a> *         <a class="link" href="gio-GZlibDecompressor.html#g-zlib-decompressor-get-file-info" title="g_zlib_decompressor_get_file_info ()">g_zlib_decompressor_get_file_info</a>   (<em class="parameter"><code><a class="link" href="gio-GZlibDecompressor.html#GZlibDecompressor" title="GZlibDecompressor"><span class="type">GZlibDecompressor</span></a> *decompressor</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gio-GZlibDecompressor.description"></a><h2>Description</h2>
<p>
<a class="link" href="gio-GZlibDecompressor.html#GZlibDecompressor" title="GZlibDecompressor"><span class="type">GZlibDecompressor</span></a> is an implementation of <a class="link" href="gio-GConverter.html#GConverter" title="GConverter"><span class="type">GConverter</span></a> that
decompresses data compressed with zlib.
</p>
</div>
<div class="refsect1">
<a name="gio-GZlibDecompressor.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GZlibDecompressor"></a><h3>GZlibDecompressor</h3>
<pre class="programlisting">typedef struct _GZlibDecompressor GZlibDecompressor;</pre>
<p>
Zlib decompression
</p>
</div>
<hr>
<div class="refsect2">
<a name="g-zlib-decompressor-new"></a><h3>g_zlib_decompressor_new ()</h3>
<pre class="programlisting"><a class="link" href="gio-GZlibDecompressor.html#GZlibDecompressor" title="GZlibDecompressor"><span class="returnvalue">GZlibDecompressor</span></a> * g_zlib_decompressor_new             (<em class="parameter"><code><a class="link" href="gio-GZlibCompressor.html#GZlibCompressorFormat" title="enum GZlibCompressorFormat"><span class="type">GZlibCompressorFormat</span></a> format</code></em>);</pre>
<p>
Creates a new <a class="link" href="gio-GZlibDecompressor.html#GZlibDecompressor" title="GZlibDecompressor"><span class="type">GZlibDecompressor</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td>The format to use for the compressed data</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gio-GZlibDecompressor.html#GZlibDecompressor" title="GZlibDecompressor"><span class="type">GZlibDecompressor</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.24</p>
</div>
<hr>
<div class="refsect2">
<a name="g-zlib-decompressor-get-file-info"></a><h3>g_zlib_decompressor_get_file_info ()</h3>
<pre class="programlisting"><a class="link" href="gio-GFileInfo.html#GFileInfo" title="GFileInfo"><span class="returnvalue">GFileInfo</span></a> *         g_zlib_decompressor_get_file_info   (<em class="parameter"><code><a class="link" href="gio-GZlibDecompressor.html#GZlibDecompressor" title="GZlibDecompressor"><span class="type">GZlibDecompressor</span></a> *decompressor</code></em>);</pre>
<p>
Retrieves the <a class="link" href="gio-GFileInfo.html#GFileInfo" title="GFileInfo"><span class="type">GFileInfo</span></a> constructed from the GZIP header data
of compressed data processed by <em class="parameter"><code>compressor</code></em>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>decompressor</code></em>'s
<a href="GZlibDecompressor.html#GZlibDecompressor--format"><span class="type">"format"</span></a> property is not <a class="link" href="gio-GZlibCompressor.html#G-ZLIB-COMPRESSOR-FORMAT-GZIP:CAPS"><code class="literal">G_ZLIB_COMPRESSOR_FORMAT_GZIP</code></a>,
or the header data was not fully processed yet, or it not present in the
data stream at all.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>decompressor</code></em> :</span></p></td>
<td>a <a class="link" href="gio-GZlibDecompressor.html#GZlibDecompressor" title="GZlibDecompressor"><span class="type">GZlibDecompressor</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="gio-GFileInfo.html#GFileInfo" title="GFileInfo"><span class="type">GFileInfo</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.17</div>
</body>
</html>